<template>
  <div>
    <div class="header">
      <div class="header-container" >
        <router-link :to="'/'">
          <div class="logo">
            <img src="~/assets/img/logo.svg" width="26px" height="26px" >
            <span class="text-primary" style="margin-left: 10px" >天天博客</span>
          </div>
        </router-link>

      </div>
    </div>
    <div class="container">
      <transition name="flow" mode="out-in">
        <nuxt/>
      </transition>
    </div>
  </div>

</template>

<script>
  import FameHeader from '~/components/Header.vue'
  import FameFooter from '~/components/Footer.vue'
  import FameScrollTop from '~/components/ScrollTop.vue'
  import api from '~/plugins/api'
  export default {
    components: {
      FameHeader,
      FameFooter,
      FameScrollTop
    },
    data:function(){
      return {

      }
    },
    methods:{
    }
  }
</script>

<style>
  .container {
    margin-top: calc(10%);
    font-size: 16px;
    position: relative;
  }

  .header {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0px 1px 0px #5764c6;
    border: none;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 200;
    transition: background 0.5s;
  }

  .header-container {
    max-width: 1200px;
    height: 40px;
    margin: 0 auto;
    padding: 15px 30px;
    font-size: .9rem;
    position: relative;
  }

  .header-container .logo {
    display: flex;
    align-items: center;
    float: left;
    margin: 5px 0;
    font-weight: 600;
    font-size: 1.5em;
  }


</style>
